package me.qingji.zebra.bean;

public class Chapter {

	private Link link;
	private String text;
	
	public Link getLink() {
		return link;
	}
	public void setLink(Link link) {
		this.link = link;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null) {
			return false;
		}
		if(obj instanceof Chapter) {
			Chapter chapter = (Chapter)obj;
			return this.link.equals(chapter.getLink());
		}
		return false;
	}
}
